<div class="row">
<?php echo $this->Html->link('Adicionar Sub-Categoria',array('controller' => 'tipos', 'action' => 'add'), array('class' => 'btn btn-default pull-right'))?>
</div>
<div class="row">
<table class="table">
  <thead>
    <tr>
      <th>Nome</th>
      <th>Categoria</th>
      <th>Ações</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($tipos as $tipo): ?>
    <tr>
        <td>
            <?php echo $tipo['Tipo']['nome']; ?>
        </td>
        <td>
            <?php echo $tipo['Categoria']['nome']; ?>
        </td>
        <td>
            <?php echo $this->Html->link('Editar', array('action'=>'edit', $tipo['Tipo']['id']), array('class'=>'btn btn-default'));?>
            <?php echo $this->Html->link('Remover', array('action' => 'delete', $tipo['Tipo']['id']), array('class'=>'btn btn-default'), 'Deseja remover?' )?>
        </td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
</div>
